<%@page import="dto.messengerDTO"%>
<%@ page import="vo.messengerVO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="mvo" class="vo.messengerVO" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="mvo" />
<%
	System.out.println(mvo.getM_id());
	System.out.println(mvo.getM_pw());
	messengerDTO mdto = new messengerDTO();
	mdto.setVO(mvo);
	
	if(mdto.login_process()){
		System.out.println("성공");
		session.setAttribute("sessionMid", mvo.getM_id());
		%>
		<script type="text/javascript">location.href= "../index/main.jsp";</script>
		<%
	}
	else{
		System.out.println("실패");
		%>
		<script type="text/javascript">location.href= "../index/index.jsp";</script>
		<%
	}
%>
</body>

</html>